import request from '../http'
import requestUrl from '../requestUrl'
import requestParam from '../requestParam'


/**
 * 登录
 * @param params
 * @returns {AxiosPromise<any>}
 */
export function toLogin(params) {
  return request.post(requestUrl('/toLogin'),params);
}

/**
 * 退出登录
 */
export function logout() {
  return request({
    url:requestUrl('logout'),
    method:'get'
  });
}
